import request from '@/utils/request'

/**
 * 查询车辆列表
 */
export function listJson(data) {
  return request({
    url: '/admin/car/listJson.do',
    method: 'post',
    data,
    timeout: 1000 * 60*5
  })
}

/**
 * 查询本单位车辆列表
 */
export function getCarCodes(data) {
  return request({
    url: '/admin/car/getCarCodes.do',
    method: 'post',
    data
  })
}
/**
 * /admin/car/setCarObd.do?carcode=&obd=
 * 更新车辆obd macid
 */
export function setCarObd(data) {
  return request({
    url: '/admin/car/setCarObd.do',
    method: 'post',
    data
  })
}

/**
 * http://localhost:8080/cars/admin/car/hisListJson.do?carcode=&companyName=
 * 车辆历史接口
 */
export function hisListJson(data) {
  return request({
    url: '/admin/car/hisListJson.do',
    method: 'post',
    data
  })
}
